package com.hgw.Demo11_VisitorPattern.examples;

/**
 * Data time:2021/12/21 20:21
 * StudentID:2019112118
 * Author:hgw
 * Description: 部门类，充当抽象访问者类
 */
public abstract class Department {
    // 声明一组重载的访问方法，用于访问不同类型的具体元素
    public abstract void visit(FulltimeEmployee employee);
    public abstract void visit(ParttimeEmployee employee);
}
